package com.lzh.redis.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lzh.redis.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 1321303706@qq.com
 * @since 2021-11-22
 */
public interface UserService extends IService<User> {
    public User queryUserByUsername(User user);
    public User queryUserById(int id);
    public int addUser(User user);
    public int updateUser(User user);
    public int delUser(int id);
    public List<User> queryUserList();

    public List<User> selectUserPage(int pageNum, int pageSize);
}
